package com.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.entity.Users;
@RunWith(SpringJUnit4ClassRunner.class)  
@ContextConfiguration({"classpath:spring/testapplicationContext*.xml"})  
public class testService {
	@Autowired
	 ApplicationContext ctx;
	     
	@Test
	public void testTx(){
		Users user = new Users();
		user.setUsername("test");
		user.setUsername("1111");
		new userService().test(user);
	}
}
